<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>地理热力图</title>
                <script type="text/javascript" src="https://assets.pyecharts.org/assets/v5/echarts.min.js"></script>
            <script type="text/javascript" src="https://assets.pyecharts.org/assets/v5/bmap.min.js"></script>
            <script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=PmSUNz1vB2wZMLui6vGozZkMKQb1Q5AC"></script>
            <script type="text/javascript" src="https://api.map.baidu.com/getscript?v=2.0&ak=PmSUNz1vB2wZMLui6vGozZkMKQb1Q5AC"></script>

</head>
<body >
    <div id="d0d5ee04df0c47e0ba5d343c6fca029f" class="chart-container" style="width:1000px; height:800px; "></div>
    <script>
        var chart_d0d5ee04df0c47e0ba5d343c6fca029f = echarts.init(
            document.getElementById('d0d5ee04df0c47e0ba5d343c6fca029f'), 'white', {renderer: 'canvas'});
        var option_d0d5ee04df0c47e0ba5d343c6fca029f = {
    "animation": true,
    "animationThreshold": 2000,
    "animationDuration": 1000,
    "animationEasing": "cubicOut",
    "animationDelay": 0,
    "animationDurationUpdate": 300,
    "animationEasingUpdate": "cubicOut",
    "animationDelayUpdate": 0,
    "aria": {
        "enabled": false
    },
    "color": [
        "#5470c6",
        "#91cc75",
        "#fac858",
        "#ee6666",
        "#73c0de",
        "#3ba272",
        "#fc8452",
        "#9a60b4",
        "#ea7ccc"
    ],
    "series": [
        {
            "type": "heatmap",
            "coordinateSystem": "bmap",
            "data": [
                {
                    "name": "\u6c99\u6cb3",
                    "value": [
                        116.295058,
                        40.154693,
                        22.3
                    ]
                },
                {
                    "name": "\u5929\u901a\u82d1\u5317",
                    "value": [
                        116.419385,
                        40.089597,
                        21.8
                    ]
                },
                {
                    "name": "\u5929\u901a\u82d1",
                    "value": [
                        116.419228,
                        40.081456,
                        20.299999999999997
                    ]
                },
                {
                    "name": "\u5b8b\u5bb6\u5e84",
                    "value": [
                        116.434908,
                        39.851735,
                        17.5
                    ]
                },
                {
                    "name": "\u65b0\u5bab",
                    "value": [
                        116.37284,
                        39.818309,
                        14.299999999999999
                    ]
                },
                {
                    "name": "\u970d\u8425",
                    "value": [
                        116.366667,
                        40.077091,
                        13.700000000000001
                    ]
                },
                {
                    "name": "\u5341\u91cc\u6cb3",
                    "value": [
                        116.465798,
                        39.871172,
                        13.600000000000001
                    ]
                },
                {
                    "name": "\u56de\u9f99\u89c2\u4e1c\u5927\u8857",
                    "value": [
                        116.369733,
                        40.086835,
                        13.3
                    ]
                },
                {
                    "name": "\u7acb\u6c34\u6865",
                    "value": [
                        116.418267,
                        40.059246,
                        12.5
                    ]
                },
                {
                    "name": "\u56de\u9f99\u89c2",
                    "value": [
                        116.342667,
                        40.076423,
                        12.2
                    ]
                },
                {
                    "name": "\u957f\u9633",
                    "value": [
                        116.219262,
                        39.769411,
                        11.6
                    ]
                },
                {
                    "name": "\u8349\u623f",
                    "value": [
                        116.622532,
                        39.93067,
                        11.200000000000001
                    ]
                },
                {
                    "name": "\u7269\u8d44\u5b66\u9662\u8def",
                    "value": [
                        116.64589,
                        39.933079,
                        11.200000000000001
                    ]
                },
                {
                    "name": "\u53e4\u57ce",
                    "value": [
                        116.197076,
                        39.913414,
                        10.8
                    ]
                },
                {
                    "name": "\u9f99\u6cfd",
                    "value": [
                        116.326298,
                        40.076646,
                        10.1
                    ]
                },
                {
                    "name": "\u91d1\u5b89\u6865",
                    "value": [
                        116.168665,
                        39.929296,
                        9.9
                    ]
                },
                {
                    "name": "\u901a\u5dde\u5317\u5173",
                    "value": [
                        116.667515,
                        39.924543,
                        9.7
                    ]
                },
                {
                    "name": "\u6731\u8f9b\u5e84",
                    "value": [
                        116.320088,
                        40.11033,
                        9.3
                    ]
                },
                {
                    "name": "\u516b\u5b9d\u5c71",
                    "value": [
                        116.2424,
                        39.913187,
                        8.5
                    ]
                },
                {
                    "name": "\u987a\u4e49",
                    "value": [
                        116.663674,
                        40.136136,
                        8.5
                    ]
                }
            ],
            "pointSize": 20,
            "blurSize": 20
        },
        {
            "type": "scatter",
            "coordinateSystem": "bmap",
            "symbolSize": 0,
            "data": [
                {
                    "name": "\u6c99\u6cb3",
                    "value": [
                        116.295058,
                        40.154693,
                        22.3
                    ]
                },
                {
                    "name": "\u5929\u901a\u82d1\u5317",
                    "value": [
                        116.419385,
                        40.089597,
                        21.8
                    ]
                },
                {
                    "name": "\u5929\u901a\u82d1",
                    "value": [
                        116.419228,
                        40.081456,
                        20.299999999999997
                    ]
                },
                {
                    "name": "\u5b8b\u5bb6\u5e84",
                    "value": [
                        116.434908,
                        39.851735,
                        17.5
                    ]
                },
                {
                    "name": "\u65b0\u5bab",
                    "value": [
                        116.37284,
                        39.818309,
                        14.299999999999999
                    ]
                },
                {
                    "name": "\u970d\u8425",
                    "value": [
                        116.366667,
                        40.077091,
                        13.700000000000001
                    ]
                },
                {
                    "name": "\u5341\u91cc\u6cb3",
                    "value": [
                        116.465798,
                        39.871172,
                        13.600000000000001
                    ]
                },
                {
                    "name": "\u56de\u9f99\u89c2\u4e1c\u5927\u8857",
                    "value": [
                        116.369733,
                        40.086835,
                        13.3
                    ]
                },
                {
                    "name": "\u7acb\u6c34\u6865",
                    "value": [
                        116.418267,
                        40.059246,
                        12.5
                    ]
                },
                {
                    "name": "\u56de\u9f99\u89c2",
                    "value": [
                        116.342667,
                        40.076423,
                        12.2
                    ]
                },
                {
                    "name": "\u957f\u9633",
                    "value": [
                        116.219262,
                        39.769411,
                        11.6
                    ]
                },
                {
                    "name": "\u8349\u623f",
                    "value": [
                        116.622532,
                        39.93067,
                        11.200000000000001
                    ]
                },
                {
                    "name": "\u7269\u8d44\u5b66\u9662\u8def",
                    "value": [
                        116.64589,
                        39.933079,
                        11.200000000000001
                    ]
                },
                {
                    "name": "\u53e4\u57ce",
                    "value": [
                        116.197076,
                        39.913414,
                        10.8
                    ]
                },
                {
                    "name": "\u9f99\u6cfd",
                    "value": [
                        116.326298,
                        40.076646,
                        10.1
                    ]
                },
                {
                    "name": "\u91d1\u5b89\u6865",
                    "value": [
                        116.168665,
                        39.929296,
                        9.9
                    ]
                },
                {
                    "name": "\u901a\u5dde\u5317\u5173",
                    "value": [
                        116.667515,
                        39.924543,
                        9.7
                    ]
                },
                {
                    "name": "\u6731\u8f9b\u5e84",
                    "value": [
                        116.320088,
                        40.11033,
                        9.3
                    ]
                },
                {
                    "name": "\u516b\u5b9d\u5c71",
                    "value": [
                        116.2424,
                        39.913187,
                        8.5
                    ]
                },
                {
                    "name": "\u987a\u4e49",
                    "value": [
                        116.663674,
                        40.136136,
                        8.5
                    ]
                }
            ],
            "label": {
                "show": true,
                "position": "top",
                "color": "red",
                "distance": 10,
                "margin": 8,
                "fontSize": 15,
                "fontStyle": "italic",
                "fontWeight": "bold",
                "formatter": "{b}",
                "valueAnimation": false
            }
        }
    ],
    "legend": [
        {
            "data": [
                "",
                ""
            ],
            "selected": {},
            "show": false,
            "padding": 5,
            "itemGap": 10,
            "itemWidth": 25,
            "itemHeight": 14,
            "backgroundColor": "transparent",
            "borderColor": "#ccc",
            "borderRadius": 0,
            "pageButtonItemGap": 5,
            "pageButtonPosition": "end",
            "pageFormatter": "{current}/{total}",
            "pageIconColor": "#2f4554",
            "pageIconInactiveColor": "#aaa",
            "pageIconSize": 15,
            "animationDurationUpdate": 800,
            "selector": false,
            "selectorPosition": "auto",
            "selectorItemGap": 7,
            "selectorButtonGap": 10
        }
    ],
    "tooltip": {
        "show": true,
        "trigger": "item",
        "triggerOn": "mousemove|click",
        "axisPointer": {
            "type": "line"
        },
        "showContent": true,
        "alwaysShowContent": false,
        "showDelay": 0,
        "hideDelay": 100,
        "enterable": false,
        "confine": false,
        "appendToBody": false,
        "transitionDuration": 0.4,
        "formatter": function (params) {        return params.name + ' : ' + params.value[2];    },
        "textStyle": {
            "fontSize": 14
        },
        "borderWidth": 0,
        "padding": 5,
        "order": "seriesAsc"
    },
    "title": [
        {
            "show": true,
            "text": "2022\u5e74\u5317\u4eac\u5e02\u5de5\u4f5c\u65e5\u65e9\u9ad8\u5cf0\u8fdb\u7ad9\u91cf\u524d20\u7684\u5730\u94c1\u7ad9\u8fdb\u7ad9\u91cf\u5730\u7406\u70ed\u529b\u56fe",
            "target": "blank",
            "subtarget": "blank",
            "left": "center",
            "padding": 5,
            "itemGap": 10,
            "textAlign": "auto",
            "textVerticalAlign": "auto",
            "triggerEvent": false
        }
    ],
    "visualMap": {
        "show": true,
        "type": "continuous",
        "min": 8,
        "max": 23,
        "inRange": {
            "color": [
                "green",
                "yellow",
                "red"
            ]
        },
        "calculable": true,
        "inverse": false,
        "splitNumber": 5,
        "hoverLink": true,
        "orient": "vertical",
        "top": "75%",
        "padding": 5,
        "showLabel": true,
        "itemWidth": 20,
        "itemHeight": 140,
        "borderWidth": 0
    },
    "bmap": {
        "center": [
            116.404699,
            39.899689
        ],
        "zoom": 11,
        "roam": true
    }
};
        chart_d0d5ee04df0c47e0ba5d343c6fca029f.setOption(option_d0d5ee04df0c47e0ba5d343c6fca029f);
                var bmap = chart_d0d5ee04df0c47e0ba5d343c6fca029f.getModel().getComponent('bmap').getBMap();
    </script>
</body>
</html>
